<!doctype html>
<html lang="en">
	<head>
		<meta charset="UTF-8">
		<title>首页</title>
		<meta name="renderer" content="webkit|ie-comp|ie-stand">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
		<meta http-equiv="Cache-Control" content="no-siteapp" />
		<script src="/style/public/publicStyle.js"></script>
	</head>

	<body>
		<!-- 顶部开始 -->
		<div class="container">
			<div class="logo">
				<a href="/index.html">简易数据抽取平台</a>
			</div>
			<div class="left_open">
				<i title="展开左侧栏" class="iconfont">&#xe699;</i>
			</div>
			
			<ul class="layui-nav right" lay-filter="">
				<li class="layui-nav-item">
					<i class="layui-icon" title="您有*条未读消息" style="color: red;font-size: 17px;">&#xe667;</i>
				</li>
				<li class="layui-nav-item">
					<a href="javascript:;">欢迎<span id="username"></span>登录</a>
					<dl class="layui-nav-child">
						<!-- 二级菜单 -->
						<dd>
							<a onclick="WeAdminShow('个人信息','http://www.baidu.com')">个人信息</a>
						</dd>
						<dd>
							<a onclick="WeAdminShow('切换帐号','./login.html')">切换帐号</a>
						</dd>
						<dd>
							<a class="loginout" href="login.html">退出</a>
						</dd>
					</dl>
				</li>
			</ul>

		</div>
		<!-- 顶部结束 -->
		<!-- 中部开始 -->
		<!-- 左侧菜单开始 -->
		<div class="left-nav" >
			<div id="side-nav">
				<ul id="nav">
				</ul>
			</div>
		</div>
		<!-- <div class="x-slide_left"></div> -->
		<!-- 左侧菜单结束 -->
		<!-- 右侧主体开始 -->
		<div class="page-content">
			<div class="layui-tab tab" lay-filter="wenav_tab" id="WeTabTip" lay-allowclose="true">
				<ul class="layui-tab-title" id="tabName">
					<li>后台首页</li>
				</ul>
				<div class="layui-tab-content">
					<div class="layui-tab-item layui-show">
						<iframe src='/pages/welcome.html' frameborder="0" scrolling="yes" class="weIframe"></iframe>
					</div>
				</div>
			</div>
		</div>

<script type="text/javascript">
	layui.jquery.ajax({
		url: '/permission/findTagsByUse?useId='+getSharreTieba_LoginUser().id,
		type: 'get',
		async: false,
		success: function (data1) {
			var data = data1.data; //提出返回数据中的data
			var html="";
			for(var i=0;i<data.length;i++) {
				html += '<li>'+
						'<a href="javascript:;">'+
						'<i class="iconfont">&#xe726;</i>'+
						'<cite>'+data[i].title+'</cite>'+
						'<i class="iconfont nav_right">&#xe697;</i>'+
						'</a>'+
						'<ul class="sub-menu">';
				layui.jquery.each(data[i].children,function(index,item) {
					html+= '<li style="margin-left: 20px">'+
							'<a _href="'+item.data.url+'" type="'+item.data.euTp+'">'+
							'<cite>'+item.data.description+'</cite>'+
							'</a>'+
							'</li>';
				});
				html += '</ul>'+
						'</li>';
			}
			layui.jquery("#nav").html(html);
		}
	});
	layui.config({
		base: '/style/js/'
		,version: '101100'
	}).use('admin');
	layui.use(['element','admin'], function(){
		var element = layui.element;
		$("#username").html(getSharreTieba_LoginUser().username);
	});


</script>
	</body>
	<!--Tab菜单右键弹出菜单-->
	<ul class="rightMenu" id="rightMenu">
        <li data-type="fresh">刷新</li>
        <li data-type="current">关闭当前</li>
        <li data-type="other">关闭其它</li>
        <li data-type="all">关闭所有</li>
    </ul>

</html>